package model;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the ueformation database table.
 * 
 */
@Entity
@NamedQuery(name="Ueformation.findAll", query="SELECT u FROM Ueformation u")
public class Ueformation implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int idUeFormation;

	//bi-directional many-to-one association to Ue
	@ManyToOne
	@JoinColumn(name="idUE")
	private Ue ue;

	//bi-directional many-to-one association to Formation
	@ManyToOne
	@JoinColumn(name="idFormation")
	private Formation formation;

	public Ueformation() {
	}

	public int getIdUeFormation() {
		return this.idUeFormation;
	}

	public void setIdUeFormation(int idUeFormation) {
		this.idUeFormation = idUeFormation;
	}

	public Ue getUe() {
		return this.ue;
	}

	public void setUe(Ue ue) {
		this.ue = ue;
	}

	public Formation getFormation() {
		return this.formation;
	}

	public void setFormation(Formation formation) {
		this.formation = formation;
	}

}